﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x0200009A RID: 154
	internal class InvalidInt16 : IInt16Decoder
	{
		// Token: 0x06000281 RID: 641 RVA: 0x0000B63E File Offset: 0x00009A3E
		private InvalidInt16()
		{
		}

		// Token: 0x06000282 RID: 642 RVA: 0x0000B646 File Offset: 0x00009A46
		public short Read(byte[] bytes, int offset, out int readSize)
		{
			throw new InvalidOperationException(string.Format("code is invalid. code:{0} format:{1}", bytes[offset], MessagePackCode.ToFormatName(bytes[offset])));
		}

		// Token: 0x040000BD RID: 189
		internal static readonly IInt16Decoder Instance = new InvalidInt16();
	}
}
